import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {fileURLToPath, URL} from 'node:url'

// https://vitejs.dev/config/
export default defineConfig({
    base: '/backs', //部署到服务器配置的路径

    plugins: [vue()],
    resolve: {
        alias: {
            '@': fileURLToPath(new URL('./src', import.meta.url))
        }
    },
    server: {
        // port: 8887,
        proxy: {
            // '/api': 'http://47.108.150.53:8888'
            '/api': 'http://127.0.0.1:9999'
            // '/api': 'http://127.0.0.1:8888'
        }
    }
})
